package com.lc.reggie.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 员工实体
 */
@Data
public class Employee implements Serializable
{
	
	private static final long serialVersionUID = 1L;
	
	private Long id;
	
	//账户名称 unique
	private String username;
	
	private String name;
	
	private String password;
	
	private String phone;
	
	//性别 1男 0女
	private String sex;
	
	//身份证号码
	private String idNumber;
	
	//状态 1正常 0锁定
	private Integer status;
	
	@TableField(fill = FieldFill.INSERT)    //插入时填充字段
	private LocalDateTime createTime;
	
	@TableField(fill = FieldFill.INSERT_UPDATE)     //插入和更新时填充字段
	private LocalDateTime updateTime;
	
	@TableField(fill = FieldFill.INSERT)    //插入时填充字段
	private Long createUser;
	
	@TableField(fill = FieldFill.INSERT_UPDATE)     //插入和更新时填充字段
	private Long updateUser;
	
}
